package com.alks.yn_zs.mapper;

import com.alks.yn_zs.data.dto.DeptDto;
import com.alks.yn_zs.data.dto.StitchDailyProDto;
import com.alks.yn_zs.data.dto.StitchMonthProDto;
import com.alks.yn_zs.data.dto.StitchPerMonthProDto;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface StitchShowMapper {

    /*查询日生产状况》》当日每组入库的情况*/
    List<StitchDailyProDto> getDailyProduction(String companyId, int deptId, LocalDate yesterday);

    /*(?)组每天的人均产能*/
    List<StitchPerMonthProDto> getPersonProduction(String companyId, String deptNo, int deptId, LocalDate startDate, LocalDate endDate);

    /*所有组当前月的总产量*/
    List<StitchMonthProDto> getMonthProduction(String companyId, int deptId, LocalDate startDate, LocalDate endDate);

    /*查询所有组别*/
    List<DeptDto> getdeptList(String companyId,int deptId);
}
